package com.slipper.system.version.properties;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@PropertySource(value = "classpath:git.properties")
public class VersionProperties {
    @Value("${git.build.version}")
    private String version;
    @Value("${git.branch}")
    private String branch;
    @Value("${git.commit.id.abbrev}")
    private String branchVersion;
    @Value("${git.build.time}")
    private String branchTime;

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getBranch() {
        return branch;
    }

    public void setBranch(String branch) {
        this.branch = branch;
    }

    public String getBranchVersion() {
        return branchVersion;
    }

    public void setBranchVersion(String branchVersion) {
        this.branchVersion = branchVersion;
    }

    public String getBranchTime() {
        return branchTime;
    }

    public void setBranchTime(String branchTime) {
        this.branchTime = branchTime;
    }
}
